<meta charset="utf-8">
<form action="" method="post">
    <input type="text" name="db">
    <select name="sortrule">
        <option value="">排序规则</option>
        <option value=""></option>
        <optgroup title="ARMSCII-8 Armenian" label="armscii8">
            <option title="亚美尼亚语, binary collation" value="armscii8_bin">armscii8_bin</option>
            <option title="亚美尼亚语, case-insensitive collation" value="armscii8_general_ci">armscii8_general_ci</option>
        </optgroup>
        <optgroup title="US ASCII" label="ascii">
            <option title="西欧 (多语言), binary collation" value="ascii_bin">ascii_bin</option>
            <option title="西欧 (多语言), case-insensitive collation" value="ascii_general_ci">ascii_general_ci</option>
        </optgroup>
        <optgroup title="Big5 Traditional Chinese" label="big5">
            <option title="繁体中文, binary collation" value="big5_bin">big5_bin</option>
            <option title="繁体中文, case-insensitive collation" value="big5_chinese_ci">big5_chinese_ci</option>
        </optgroup>
        <optgroup title="Binary pseudo charset" label="binary">
            <option title="二进制" value="binary">binary</option>
        </optgroup>
        <optgroup title="Windows Central European" label="cp1250">
            <option title="中欧 (多语言), binary collation" value="cp1250_bin">cp1250_bin</option>
            <option title="克罗地亚语, case-insensitive collation" value="cp1250_croatian_ci">cp1250_croatian_ci</option>
            <option title="捷克语, case-sensitive collation" value="cp1250_czech_cs">cp1250_czech_cs</option>
            <option title="中欧 (多语言), case-insensitive collation" value="cp1250_general_ci">cp1250_general_ci</option>
            <option title="波兰语, case-insensitive collation" value="cp1250_polish_ci">cp1250_polish_ci</option>
        </optgroup>
        <optgroup title="Windows Cyrillic" label="cp1251">
            <option title="西里尔语 (多语言), binary collation" value="cp1251_bin">cp1251_bin</option>
            <option title="保加利亚语, case-insensitive collation" value="cp1251_bulgarian_ci">cp1251_bulgarian_ci</option>
            <option title="西里尔语 (多语言), case-insensitive collation" value="cp1251_general_ci">cp1251_general_ci</option>
            <option title="西里尔语 (多语言), case-sensitive collation" value="cp1251_general_cs">cp1251_general_cs</option>
            <option title="乌克兰语, case-insensitive collation" value="cp1251_ukrainian_ci">cp1251_ukrainian_ci</option>
        </optgroup>
        <optgroup title="Windows Arabic" label="cp1256">
            <option title="阿拉伯语, binary collation" value="cp1256_bin">cp1256_bin</option>
            <option title="阿拉伯语, case-insensitive collation" value="cp1256_general_ci">cp1256_general_ci</option>
        </optgroup>
        <optgroup title="Windows Baltic" label="cp1257">
            <option title="巴拉克语 (多语言), binary collation" value="cp1257_bin">cp1257_bin</option>
            <option title="巴拉克语 (多语言), case-insensitive collation" value="cp1257_general_ci">cp1257_general_ci</option>
            <option title="立陶宛语, case-insensitive collation" value="cp1257_lithuanian_ci">cp1257_lithuanian_ci</option>
        </optgroup>
        <optgroup title="DOS West European" label="cp850">
            <option title="西欧 (多语言), binary collation" value="cp850_bin">cp850_bin</option>
            <option title="西欧 (多语言), case-insensitive collation" value="cp850_general_ci">cp850_general_ci</option>
        </optgroup>
        <optgroup title="DOS Central European" label="cp852">
            <option title="中欧 (多语言), binary collation" value="cp852_bin">cp852_bin</option>
            <option title="中欧 (多语言), case-insensitive collation" value="cp852_general_ci">cp852_general_ci</option>
        </optgroup>
        <optgroup title="DOS Russian" label="cp866">
            <option title="俄语, binary collation" value="cp866_bin">cp866_bin</option>
            <option title="俄语, case-insensitive collation" value="cp866_general_ci">cp866_general_ci</option>
        </optgroup>
        <optgroup title="SJIS for Windows Japanese" label="cp932">
            <option title="日语, binary collation" value="cp932_bin">cp932_bin</option>
            <option title="日语, case-insensitive collation" value="cp932_japanese_ci">cp932_japanese_ci</option>
        </optgroup>
        <optgroup title="DEC West European" label="dec8">
            <option title="西欧 (多语言), binary collation" value="dec8_bin">dec8_bin</option>
            <option title="瑞典语, case-insensitive collation" value="dec8_swedish_ci">dec8_swedish_ci</option>
        </optgroup>
        <optgroup title="UJIS for Windows Japanese" label="eucjpms">
            <option title="日语, binary collation" value="eucjpms_bin">eucjpms_bin</option>
            <option title="日语, case-insensitive collation" value="eucjpms_japanese_ci">eucjpms_japanese_ci</option>
        </optgroup>
        <optgroup title="EUC-KR Korean" label="euckr">
            <option title="朝鲜语, binary collation" value="euckr_bin">euckr_bin</option>
            <option title="朝鲜语, case-insensitive collation" value="euckr_korean_ci">euckr_korean_ci</option>
        </optgroup>
        <optgroup title="GB2312 Simplified Chinese" label="gb2312">
            <option title="简体中文, binary collation" value="gb2312_bin">gb2312_bin</option>
            <option title="简体中文, case-insensitive collation" value="gb2312_chinese_ci">gb2312_chinese_ci</option>
        </optgroup>
        <optgroup title="GBK Simplified Chinese" label="gbk">
            <option title="简体中文, binary collation" value="gbk_bin">gbk_bin</option>
            <option title="简体中文, case-insensitive collation" value="gbk_chinese_ci">gbk_chinese_ci</option>
        </optgroup>
        <optgroup title="GEOSTD8 Georgian" label="geostd8">
            <option title="乔治亚语, binary collation" value="geostd8_bin">geostd8_bin</option>
            <option title="乔治亚语, case-insensitive collation" value="geostd8_general_ci">geostd8_general_ci</option>
        </optgroup>
        <optgroup title="ISO 8859-7 Greek" label="greek">
            <option title="希腊语, binary collation" value="greek_bin">greek_bin</option>
            <option title="希腊语, case-insensitive collation" value="greek_general_ci">greek_general_ci</option>
        </optgroup>
        <optgroup title="ISO 8859-8 Hebrew" label="hebrew">
            <option title="希伯来语, binary collation" value="hebrew_bin">hebrew_bin</option>
            <option title="希伯来语, case-insensitive collation" value="hebrew_general_ci">hebrew_general_ci</option>
        </optgroup>
        <optgroup title="HP West European" label="hp8">
            <option title="西欧 (多语言), binary collation" value="hp8_bin">hp8_bin</option>
            <option title="英语, case-insensitive collation" value="hp8_english_ci">hp8_english_ci</option>
        </optgroup>
        <optgroup title="DOS Kamenicky Czech-Slovak" label="keybcs2">
            <option title="捷克斯洛伐克语, binary collation" value="keybcs2_bin">keybcs2_bin</option>
            <option title="捷克斯洛伐克语, case-insensitive collation" value="keybcs2_general_ci">keybcs2_general_ci</option>
        </optgroup>
        <optgroup title="KOI8-R Relcom Russian" label="koi8r">
            <option title="俄语, binary collation" value="koi8r_bin">koi8r_bin</option>
            <option title="俄语, case-insensitive collation" value="koi8r_general_ci">koi8r_general_ci</option>
        </optgroup>
        <optgroup title="KOI8-U Ukrainian" label="koi8u">
            <option title="乌克兰语, binary collation" value="koi8u_bin">koi8u_bin</option>
            <option title="乌克兰语, case-insensitive collation" value="koi8u_general_ci">koi8u_general_ci</option>
        </optgroup>
        <optgroup title="cp1252 West European" label="latin1">
            <option title="西欧 (多语言), binary collation" value="latin1_bin">latin1_bin</option>
            <option title="丹麦语, case-insensitive collation" value="latin1_danish_ci">latin1_danish_ci</option>
            <option title="西欧 (多语言), case-insensitive collation" value="latin1_general_ci">latin1_general_ci</option>
            <option title="西欧 (多语言), case-sensitive collation" value="latin1_general_cs">latin1_general_cs</option>
            <option title="德语 (字典), case-insensitive collation" value="latin1_german1_ci">latin1_german1_ci</option>
            <option title="德语 (电话本), case-insensitive collation" value="latin1_german2_ci">latin1_german2_ci</option>
            <option title="西班牙语, case-insensitive collation" value="latin1_spanish_ci">latin1_spanish_ci</option>
            <option title="瑞典语, case-insensitive collation" value="latin1_swedish_ci">latin1_swedish_ci</option>
        </optgroup>
        <optgroup title="ISO 8859-2 Central European" label="latin2">
            <option title="中欧 (多语言), binary collation" value="latin2_bin">latin2_bin</option>
            <option title="克罗地亚语, case-insensitive collation" value="latin2_croatian_ci">latin2_croatian_ci</option>
            <option title="捷克语, case-sensitive collation" value="latin2_czech_cs">latin2_czech_cs</option>
            <option title="中欧 (多语言), case-insensitive collation" value="latin2_general_ci">latin2_general_ci</option>
            <option title="匈牙利语, case-insensitive collation" value="latin2_hungarian_ci">latin2_hungarian_ci</option>
        </optgroup>
        <optgroup title="ISO 8859-9 Turkish" label="latin5">
            <option title="土耳其语, binary collation" value="latin5_bin">latin5_bin</option>
            <option title="土耳其语, case-insensitive collation" value="latin5_turkish_ci">latin5_turkish_ci</option>
        </optgroup>
        <optgroup title="ISO 8859-13 Baltic" label="latin7">
            <option title="巴拉克语 (多语言), binary collation" value="latin7_bin">latin7_bin</option>
            <option title="爱沙尼亚语, case-sensitive collation" value="latin7_estonian_cs">latin7_estonian_cs</option>
            <option title="巴拉克语 (多语言), case-insensitive collation" value="latin7_general_ci">latin7_general_ci</option>
            <option title="巴拉克语 (多语言), case-sensitive collation" value="latin7_general_cs">latin7_general_cs</option>
        </optgroup>
        <optgroup title="Mac Central European" label="macce">
            <option title="中欧 (多语言), binary collation" value="macce_bin">macce_bin</option>
            <option title="中欧 (多语言), case-insensitive collation" value="macce_general_ci">macce_general_ci</option>
        </optgroup>
        <optgroup title="Mac West European" label="macroman">
            <option title="西欧 (多语言), binary collation" value="macroman_bin">macroman_bin</option>
            <option title="西欧 (多语言), case-insensitive collation" value="macroman_general_ci">macroman_general_ci</option>
        </optgroup>
        <optgroup title="Shift-JIS Japanese" label="sjis">
            <option title="日语, binary collation" value="sjis_bin">sjis_bin</option>
            <option title="日语, case-insensitive collation" value="sjis_japanese_ci">sjis_japanese_ci</option>
        </optgroup>
        <optgroup title="7bit Swedish" label="swe7">
            <option title="瑞典语, binary collation" value="swe7_bin">swe7_bin</option>
            <option title="瑞典语, case-insensitive collation" value="swe7_swedish_ci">swe7_swedish_ci</option>
        </optgroup>
        <optgroup title="TIS620 Thai" label="tis620">
            <option title="泰语, binary collation" value="tis620_bin">tis620_bin</option>
            <option title="泰语, case-insensitive collation" value="tis620_thai_ci">tis620_thai_ci</option>
        </optgroup>
        <optgroup title="UCS-2 Unicode" label="ucs2">
            <option title="Unicode (多语言), binary collation" value="ucs2_bin">ucs2_bin</option>
            <option title="捷克语, case-insensitive collation" value="ucs2_czech_ci">ucs2_czech_ci</option>
            <option title="丹麦语, case-insensitive collation" value="ucs2_danish_ci">ucs2_danish_ci</option>
            <option title="世界语, case-insensitive collation" value="ucs2_esperanto_ci">ucs2_esperanto_ci</option>
            <option title="爱沙尼亚语, case-insensitive collation" value="ucs2_estonian_ci">ucs2_estonian_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="ucs2_general_ci">ucs2_general_ci</option>
            <option title="Unicode (多语言)" value="ucs2_general_mysql500_ci">ucs2_general_mysql500_ci</option>
            <option title="匈牙利语, case-insensitive collation" value="ucs2_hungarian_ci">ucs2_hungarian_ci</option>
            <option title="冰岛语, case-insensitive collation" value="ucs2_icelandic_ci">ucs2_icelandic_ci</option>
            <option title="拉脱维亚语, case-insensitive collation" value="ucs2_latvian_ci">ucs2_latvian_ci</option>
            <option title="立陶宛语, case-insensitive collation" value="ucs2_lithuanian_ci">ucs2_lithuanian_ci</option>
            <option title="波斯语, case-insensitive collation" value="ucs2_persian_ci">ucs2_persian_ci</option>
            <option title="波兰语, case-insensitive collation" value="ucs2_polish_ci">ucs2_polish_ci</option>
            <option title="西欧, case-insensitive collation" value="ucs2_roman_ci">ucs2_roman_ci</option>
            <option title="罗马尼亚语, case-insensitive collation" value="ucs2_romanian_ci">ucs2_romanian_ci</option>
            <option title="僧伽罗语, case-insensitive collation" value="ucs2_sinhala_ci">ucs2_sinhala_ci</option>
            <option title="斯洛伐克语, case-insensitive collation" value="ucs2_slovak_ci">ucs2_slovak_ci</option>
            <option title="斯洛文尼亚语, case-insensitive collation" value="ucs2_slovenian_ci">ucs2_slovenian_ci</option>
            <option title="传统西班牙语, case-insensitive collation" value="ucs2_spanish2_ci">ucs2_spanish2_ci</option>
            <option title="西班牙语, case-insensitive collation" value="ucs2_spanish_ci">ucs2_spanish_ci</option>
            <option title="瑞典语, case-insensitive collation" value="ucs2_swedish_ci">ucs2_swedish_ci</option>
            <option title="土耳其语, case-insensitive collation" value="ucs2_turkish_ci">ucs2_turkish_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="ucs2_unicode_ci">ucs2_unicode_ci</option>
        </optgroup>
        <optgroup title="EUC-JP Japanese" label="ujis">
            <option title="日语, binary collation" value="ujis_bin">ujis_bin</option>
            <option title="日语, case-insensitive collation" value="ujis_japanese_ci">ujis_japanese_ci</option>
        </optgroup>
        <optgroup title="UTF-16 Unicode" label="utf16">
            <option title="Unicode (多语言), binary collation" value="utf16_bin">utf16_bin</option>
            <option title="捷克语, case-insensitive collation" value="utf16_czech_ci">utf16_czech_ci</option>
            <option title="丹麦语, case-insensitive collation" value="utf16_danish_ci">utf16_danish_ci</option>
            <option title="世界语, case-insensitive collation" value="utf16_esperanto_ci">utf16_esperanto_ci</option>
            <option title="爱沙尼亚语, case-insensitive collation" value="utf16_estonian_ci">utf16_estonian_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf16_general_ci">utf16_general_ci</option>
            <option title="匈牙利语, case-insensitive collation" value="utf16_hungarian_ci">utf16_hungarian_ci</option>
            <option title="冰岛语, case-insensitive collation" value="utf16_icelandic_ci">utf16_icelandic_ci</option>
            <option title="拉脱维亚语, case-insensitive collation" value="utf16_latvian_ci">utf16_latvian_ci</option>
            <option title="立陶宛语, case-insensitive collation" value="utf16_lithuanian_ci">utf16_lithuanian_ci</option>
            <option title="波斯语, case-insensitive collation" value="utf16_persian_ci">utf16_persian_ci</option>
            <option title="波兰语, case-insensitive collation" value="utf16_polish_ci">utf16_polish_ci</option>
            <option title="西欧, case-insensitive collation" value="utf16_roman_ci">utf16_roman_ci</option>
            <option title="罗马尼亚语, case-insensitive collation" value="utf16_romanian_ci">utf16_romanian_ci</option>
            <option title="僧伽罗语, case-insensitive collation" value="utf16_sinhala_ci">utf16_sinhala_ci</option>
            <option title="斯洛伐克语, case-insensitive collation" value="utf16_slovak_ci">utf16_slovak_ci</option>
            <option title="斯洛文尼亚语, case-insensitive collation" value="utf16_slovenian_ci">utf16_slovenian_ci</option>
            <option title="传统西班牙语, case-insensitive collation" value="utf16_spanish2_ci">utf16_spanish2_ci</option>
            <option title="西班牙语, case-insensitive collation" value="utf16_spanish_ci">utf16_spanish_ci</option>
            <option title="瑞典语, case-insensitive collation" value="utf16_swedish_ci">utf16_swedish_ci</option>
            <option title="土耳其语, case-insensitive collation" value="utf16_turkish_ci">utf16_turkish_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf16_unicode_ci">utf16_unicode_ci</option>
        </optgroup>
        <optgroup title="UTF-32 Unicode" label="utf32">
            <option title="Unicode (多语言), binary collation" value="utf32_bin">utf32_bin</option>
            <option title="捷克语, case-insensitive collation" value="utf32_czech_ci">utf32_czech_ci</option>
            <option title="丹麦语, case-insensitive collation" value="utf32_danish_ci">utf32_danish_ci</option>
            <option title="世界语, case-insensitive collation" value="utf32_esperanto_ci">utf32_esperanto_ci</option>
            <option title="爱沙尼亚语, case-insensitive collation" value="utf32_estonian_ci">utf32_estonian_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf32_general_ci">utf32_general_ci</option>
            <option title="匈牙利语, case-insensitive collation" value="utf32_hungarian_ci">utf32_hungarian_ci</option>
            <option title="冰岛语, case-insensitive collation" value="utf32_icelandic_ci">utf32_icelandic_ci</option>
            <option title="拉脱维亚语, case-insensitive collation" value="utf32_latvian_ci">utf32_latvian_ci</option>
            <option title="立陶宛语, case-insensitive collation" value="utf32_lithuanian_ci">utf32_lithuanian_ci</option>
            <option title="波斯语, case-insensitive collation" value="utf32_persian_ci">utf32_persian_ci</option>
            <option title="波兰语, case-insensitive collation" value="utf32_polish_ci">utf32_polish_ci</option>
            <option title="西欧, case-insensitive collation" value="utf32_roman_ci">utf32_roman_ci</option>
            <option title="罗马尼亚语, case-insensitive collation" value="utf32_romanian_ci">utf32_romanian_ci</option>
            <option title="僧伽罗语, case-insensitive collation" value="utf32_sinhala_ci">utf32_sinhala_ci</option>
            <option title="斯洛伐克语, case-insensitive collation" value="utf32_slovak_ci">utf32_slovak_ci</option>
            <option title="斯洛文尼亚语, case-insensitive collation" value="utf32_slovenian_ci">utf32_slovenian_ci</option>
            <option title="传统西班牙语, case-insensitive collation" value="utf32_spanish2_ci">utf32_spanish2_ci</option>
            <option title="西班牙语, case-insensitive collation" value="utf32_spanish_ci">utf32_spanish_ci</option>
            <option title="瑞典语, case-insensitive collation" value="utf32_swedish_ci">utf32_swedish_ci</option>
            <option title="土耳其语, case-insensitive collation" value="utf32_turkish_ci">utf32_turkish_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf32_unicode_ci">utf32_unicode_ci</option>
        </optgroup>
        <optgroup title="UTF-8 Unicode" label="utf8">
            <option title="Unicode (多语言), binary collation" value="utf8_bin">utf8_bin</option>
            <option title="捷克语, case-insensitive collation" value="utf8_czech_ci">utf8_czech_ci</option>
            <option title="丹麦语, case-insensitive collation" value="utf8_danish_ci">utf8_danish_ci</option>
            <option title="世界语, case-insensitive collation" value="utf8_esperanto_ci">utf8_esperanto_ci</option>
            <option title="爱沙尼亚语, case-insensitive collation" value="utf8_estonian_ci">utf8_estonian_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf8_general_ci">utf8_general_ci</option>
            <option title="Unicode (多语言)" value="utf8_general_mysql500_ci">utf8_general_mysql500_ci</option>
            <option title="匈牙利语, case-insensitive collation" value="utf8_hungarian_ci">utf8_hungarian_ci</option>
            <option title="冰岛语, case-insensitive collation" value="utf8_icelandic_ci">utf8_icelandic_ci</option>
            <option title="拉脱维亚语, case-insensitive collation" value="utf8_latvian_ci">utf8_latvian_ci</option>
            <option title="立陶宛语, case-insensitive collation" value="utf8_lithuanian_ci">utf8_lithuanian_ci</option>
            <option title="波斯语, case-insensitive collation" value="utf8_persian_ci">utf8_persian_ci</option>
            <option title="波兰语, case-insensitive collation" value="utf8_polish_ci">utf8_polish_ci</option>
            <option title="西欧, case-insensitive collation" value="utf8_roman_ci">utf8_roman_ci</option>
            <option title="罗马尼亚语, case-insensitive collation" value="utf8_romanian_ci">utf8_romanian_ci</option>
            <option title="僧伽罗语, case-insensitive collation" value="utf8_sinhala_ci">utf8_sinhala_ci</option>
            <option title="斯洛伐克语, case-insensitive collation" value="utf8_slovak_ci">utf8_slovak_ci</option>
            <option title="斯洛文尼亚语, case-insensitive collation" value="utf8_slovenian_ci">utf8_slovenian_ci</option>
            <option title="传统西班牙语, case-insensitive collation" value="utf8_spanish2_ci">utf8_spanish2_ci</option>
            <option title="西班牙语, case-insensitive collation" value="utf8_spanish_ci">utf8_spanish_ci</option>
            <option title="瑞典语, case-insensitive collation" value="utf8_swedish_ci">utf8_swedish_ci</option>
            <option title="土耳其语, case-insensitive collation" value="utf8_turkish_ci">utf8_turkish_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf8_unicode_ci">utf8_unicode_ci</option>
        </optgroup>
        <optgroup title="UTF-8 Unicode" label="utf8mb4">
            <option title="Unicode (多语言), binary collation" value="utf8mb4_bin">utf8mb4_bin</option>
            <option title="捷克语, case-insensitive collation" value="utf8mb4_czech_ci">utf8mb4_czech_ci</option>
            <option title="丹麦语, case-insensitive collation" value="utf8mb4_danish_ci">utf8mb4_danish_ci</option>
            <option title="世界语, case-insensitive collation" value="utf8mb4_esperanto_ci">utf8mb4_esperanto_ci</option>
            <option title="爱沙尼亚语, case-insensitive collation" value="utf8mb4_estonian_ci">utf8mb4_estonian_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf8mb4_general_ci">utf8mb4_general_ci</option>
            <option title="匈牙利语, case-insensitive collation" value="utf8mb4_hungarian_ci">utf8mb4_hungarian_ci</option>
            <option title="冰岛语, case-insensitive collation" value="utf8mb4_icelandic_ci">utf8mb4_icelandic_ci</option>
            <option title="拉脱维亚语, case-insensitive collation" value="utf8mb4_latvian_ci">utf8mb4_latvian_ci</option>
            <option title="立陶宛语, case-insensitive collation" value="utf8mb4_lithuanian_ci">utf8mb4_lithuanian_ci</option>
            <option title="波斯语, case-insensitive collation" value="utf8mb4_persian_ci">utf8mb4_persian_ci</option>
            <option title="波兰语, case-insensitive collation" value="utf8mb4_polish_ci">utf8mb4_polish_ci</option>
            <option title="西欧, case-insensitive collation" value="utf8mb4_roman_ci">utf8mb4_roman_ci</option>
            <option title="罗马尼亚语, case-insensitive collation" value="utf8mb4_romanian_ci">utf8mb4_romanian_ci</option>
            <option title="僧伽罗语, case-insensitive collation" value="utf8mb4_sinhala_ci">utf8mb4_sinhala_ci</option>
            <option title="斯洛伐克语, case-insensitive collation" value="utf8mb4_slovak_ci">utf8mb4_slovak_ci</option>
            <option title="斯洛文尼亚语, case-insensitive collation" value="utf8mb4_slovenian_ci">utf8mb4_slovenian_ci</option>
            <option title="传统西班牙语, case-insensitive collation" value="utf8mb4_spanish2_ci">utf8mb4_spanish2_ci</option>
            <option title="西班牙语, case-insensitive collation" value="utf8mb4_spanish_ci">utf8mb4_spanish_ci</option>
            <option title="瑞典语, case-insensitive collation" value="utf8mb4_swedish_ci">utf8mb4_swedish_ci</option>
            <option title="土耳其语, case-insensitive collation" value="utf8mb4_turkish_ci">utf8mb4_turkish_ci</option>
            <option title="Unicode (多语言), case-insensitive collation" value="utf8mb4_unicode_ci">utf8mb4_unicode_ci</option>
        </optgroup>
    </select>
    <input type="submit" name="sub">
</form>
<?php
include "db.php";
if(!empty($_POST['sub'])){
    $dbname=trim($_POST['db']);
    $sortrule=trim($_POST['sortrule']);
    if(empty($dbname) && empty($sortrule)){
        die("数据库名和排序规则不能为空");
    }
    $sql=mysql_query("create database $dbname collate $sortrule",$link);
    if($sql){
        $sql1=mysql_query("show databases",$link);
        mysql_query("set names utf8");
        while($a=mysql_fetch_assoc($sql1)){
            echo "<a style='display:block' href='table.php?database=".$a["Database"]."'>".$a["Database"]."</a>";
        }
    }
}else{
    $sql1=mysql_query("show databases",$link);
    mysql_query("set names utf8");
    while($a=mysql_fetch_assoc($sql1)){
        echo "<a style='display:block' href='table.php?database=".$a["Database"]."'>".$a["Database"]."</a>";
    }
}
?>


